package com.example.activitylifecycle_wk618lw;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {
    private static String TAG="LifeCycle";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Log.i(TAG,"--(1)onCreate");
    }


    @Override
    protected void onStart() {
        super.onStart();
        Log.d(TAG,"--(2)onStart");
    }

    @Override
    protected void onRestoreInstanceState(@NonNull Bundle savedInstanceState) {
        super.onRestoreInstanceState(savedInstanceState);
        Log.v(TAG,"--(3)onRestoreInstanceState");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.i(TAG,"--(4)onResume");
    }


    @Override
    protected void onSaveInstanceState(@NonNull Bundle outState) {
        super.onSaveInstanceState(outState);
        Log.e(TAG,"--(5)onSaveInstanceState");
    }


    @Override
    protected void onRestart() {
        super.onRestart();
        Log.i(TAG,"--(6)onRestart");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.w(TAG,"--(7)onPause");
    }


    @Override
    protected void onStop() {
        super.onStop();
        Log.i(TAG,"--(8)onStop");
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i(TAG,"--(9)onDestroy");
    }







}
